package _90ZhuangShiQi.impl;

import _90ZhuangShiQi.Shape;

/**
 * @Shape: 实现 图形接口 的抽象装饰类
 * @author: ZBoHang
 * @time: 2021/9/9 13:20
 */
public abstract class ShapeDecorator implements _90ZhuangShiQi.Shape {

    protected Shape shapeDecorator;

    public ShapeDecorator(Shape shapeDecorator) {
        this.shapeDecorator = shapeDecorator;
    }

    @Override
    public void draw() {
        shapeDecorator.draw();
    }
}
